<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>会员</title>
<link href="<?php echo LAYUI_PATH;?>css/layui.css" rel="stylesheet" type="text/css" />
<link href="<?php echo LAYUI_PATH;?>css/member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo LAYUI_PATH;?>layui.js"></script>
</head>
<body>
<ul class="layui-user-status">
	<?php if($_username) { ?>
	<li class="layui-nav-item">
	  <a href="<?php echo APP_PATH;?>index.php?m=member&siteid=<?php echo $siteid;?>" target="_blank">
	  	<img src="<?php echo $_avatar;?>" />
	  	<cite class="layui-username"><?php echo $_username;?></cite>
	  </a>
	</li>
	<li class="layui-nav-item"><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=logout&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top">退出</a></li>
	<?php } else { ?>
	<li class="layui-nav-item"><a class="layui-icon" href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top">&#xe612;</a></li>
	<li class="layui-nav-item"><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&forward=<?php echo urlencode($_GET['forward']);?>&siteid=<?php echo $siteid;?>" target="_top">登录</a></li>
	<li class="layui-nav-item"><a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>" target="_top">注册</a></li>
	<?php } ?>
</ul>
</body>
</html>